package rsb21411ls.d1113;

public class CarBean {
    String fdjNumber;
    CarBean(){

    }
    public CarBean(String fdjNumber, String cpNumber) {
        this.fdjNumber = fdjNumber;
        this.cpNumber = cpNumber;
    }

    public String getFdjNumber() {
        return fdjNumber;
    }

    public void setFdjNumber(String fdjNumber) {
        this.fdjNumber = fdjNumber;
    }

    public String getCpNumber() {
        return cpNumber;
    }

    public void setCpNumber(String cpNumber) {
        this.cpNumber = cpNumber;
    }

    String cpNumber;

    @Override
    public String toString() {
        return this.fdjNumber+this.cpNumber;

    }

    @Override
    public boolean equals(Object obj) {
        CarBean car=(CarBean)obj;
        if (this==obj){
            return true;
        }else if(this.cpNumber.equals(car.cpNumber)&&this.fdjNumber.equals(car.fdjNumber)){

            return true;
        }else
        {
            return false;
        }

    }



}
